Thus being more consistent that functions that take icc_data + length have the
prefix babl_icc_, since each icc space in the future potentially can have more
spaces than the relative-colorimetric space defined, _make_ seems better than
_to_ or _new_.
return u8f8_to_d (read_u8f8_ (state, offset));
}
+#if 0
static inline void print_u8f8 (u8f8_t fix)
{
int i;
}
}
}
+#endif
static void write_u32 (ICC *state, int offset, uint32_t value)
{
}
const Babl *
-babl_space_from_icc (const char *icc_data,
+babl_icc_make_space (const char *icc_data,
int icc_length,
BablIccIntent intent,
const char **error)
} BablIccIntent;
/**
- * babl_space_from_icc:
+ * babl_icc_make_space:
*
* @icc_data: pointer to icc profile in memory
* @icc_length: length of icc profile in bytes
* containing a message describing why the provided data does not yield a babl
* space.
*/
-const Babl *babl_space_from_icc (const char *icc_data,
+const Babl *babl_icc_make_space (const char *icc_data,
int icc_length,
BablIccIntent intent,
const char **error);
+
/* babl_icc_get_key:
*
* @icc_data: pointer to in-memory icc profile
babl_get_name
babl_get_user_data
babl_get_version
+babl_icc_make_space
babl_icc_get_key
babl_init
babl_introspect
babl_sampling
babl_set_user_data
babl_space
-babl_space_from_icc
babl_space_from_xyz
babl_space_get_rgbtoxyz
babl_space_to_xyz
free (str);
}
}
- babl = babl_space_from_icc (icc_data, icc_len, 0, &error);
+ babl = babl_icc_make_space (icc_data, icc_len, 0, &error);
free (icc_data);
if (error || !babl)
{